package me.zk.beibao.user.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Random;

/**
 * @Author: zhang kai
 * @Date: 2021/09/11
 * @Description:
 */
@Api
@RestController
@RequestMapping("/api")
@Slf4j
public class BeiBaoLoginController {


   @ApiOperation("登陆")
   @PostMapping("/login")
   public String login() {
      log.info("login....");
      return new Random(1000).nextInt() + "";
   }
}
